package cn.gdk.gaodekecc.exception;

import lombok.Data;

@Data
public class GlobalCommonException extends RuntimeException {
    private String message;
    private String code;

    public GlobalCommonException(String message, String code) {
        super(message);
        this.message = message;
        this.code = code;
    }


    public GlobalCommonException(GlobalExceptionCodeEunm parameterIsNull) {
        super(parameterIsNull.getMessage());
        this.message =parameterIsNull.getMessage();
        this.code = parameterIsNull.getCode();
    }

}
